package com.sdy.dcsb.biz.model.swagger;

import com.sdy.dcsb.biz.model.vo.EsbScriptVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * @author Snaky
 * @date 2020/4/29
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "ScriptPageInfo", description = "脚本分页信息")
public class ScriptPageInfo {
    @ApiModelProperty(value = "返回码")
    private Integer code;
    @ApiModelProperty(value = "成功标识")
    private boolean success;
    @ApiModelProperty(value = "返回消息")
    private String message;
    @ApiModelProperty(value = "返回数据")
    private ScriptData data;

    @Data
    @Accessors(chain = true)
    @ApiModel(value = "ScriptData", description = "脚本返回业务数据")
    private class ScriptData{
        @ApiModelProperty(value = "脚本信息数组")
        private List<EsbScriptVo> records;
        @ApiModelProperty(value = "总数据量")
        private Integer total;
        @ApiModelProperty(value = "分页大小")
        private Integer size;
        @ApiModelProperty(value = "当前页")
        private Integer current;
        @ApiModelProperty(value = "是否计数，默认为true")
        private Integer searchCount;
        @ApiModelProperty(value = "页数")
        private Integer pages;
    }
}
